/**
 * jims
 */
package com.jims.master.modules.nurse.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.modules.doctor.entity.PatVisit;
import com.jims.master.modules.doctor.vo.TurnInVo;

import java.util.List;
import java.util.Map;

/**
 * 医生病历流转DAO接口
 *
 * @author CTQ
 * @version 2017-03-28 09:14:58
 */
@MyBatisDao
public interface WardCirculationDao extends CrudDao<PatVisit> {

    /**
     * 查询所有待入当前医生本科室的患者列表
     *
     * @param turnInVo
     * @return
     */
    public List<TurnInVo> waitWardPatientList(TurnInVo turnInVo);

    /**
     * 查询所有待转出病人列表
     *
     * @param turnInVo
     * @return
     */
    public List<TurnInVo> findWaitTurnOutPatientList(TurnInVo turnInVo);

    /**
     * 查询所有待取消转出病人列表
     *
     * @param turnInVo
     * @return
     */
    public List<TurnInVo> findWaitCancelPatientList(TurnInVo turnInVo);

    /**
     * 查询所有待出院病人列表
     *
     * @param turnInVo
     * @return
     */
    public List<TurnInVo> findWaitLeaveHospPatientList(TurnInVo turnInVo);

    public List<TurnInVo> findWaitCancelLeaveHospPatientList(TurnInVo turnInVo);

    /**
     * 新建病人病历
     *
     * @param map
     * @return
     * @author CTQ
     */
    public void turnInPatient(Map<String, Object> map);

    /**
     * 取消新建病人病历
     *
     * @param map
     * @return
     */
    public Map<String, Object>  cancelTurnInPatient(Map<String, Object> map);

    /**
     * 医生移出病人病历
     *
     * @param map
     * @return
     */
    public Map<String, Object> turnOutPatient(Map<String, Object> map);

    /**
     * 医生取消移出病人病历
     *
     * @param map
     * @return
     */
    public void cancelTurnOutPatient(Map<String, Object> map);

    /**
     * 病人出院
     *
     * @param map
     */
    public Map<String, Object> leaveHospPatient(Map<String, Object> map);

    /**
     * 取消病人出院
     *
     * @param map
     */
    public Map<String, Object> cancelLeaveHospPatient(Map<String, Object> map);

}